<?php

namespace ApiBundle\Controller\User;


use ApiBundle\Controller\BaseController;
use Symfony\Component\HttpFoundation\Request;

class IndexController extends BaseController
{
    public function indexAction()
    {
        $conn = $this->get('database_connection');
        if (!$this->isLogged($conn)) {
            return $this->response;
        }

        if(!$this->isLogged()){
            return $this->response;
        }

        $data['user_id'] = $this->get('session')->get('user_id');
        $data['phone'] = $this->get('session')->get('phone');

        return $this->jsonResponse(0, '我是首页');
    }


}
